﻿@{
    Layout = "../_QuickLayoutPage.cshtml";
    CurrentUser findUser = (CurrentUser)ViewBag.FindUser;
}

<div class="login-sign">重置密码</div>
<div id="findBox">
    <form method="post" id="regForm" autocomplete="off">
        <div class="validate-all-tips-box"></div>
        <div class="form-group">
            <label class="control-label">用户名：</label>
            <div class="controls">
                <input type="text" class="form-control" id="username" name="username" value="@findUser.UserName" readonly />
                <span class="help-block"></span>
            </div>
        </div>

        <div class="form-group">
            <label class="control-label">重设密码：</label>
            <div class="controls ">
                <input type="password" class="form-control" name="password" id="password" data-validate="dataType:'password',nullMsg:'请填写密码!'" maxlength="16">
                <span class="help-block"></span>
            </div>
        </div>

        <div class="form-group">
            <label class="control-label">密码确认：</label>
            <div class="controls">
                <input type="password" class="form-control" name="password1" id="password1" data-validate="dataType:'*',nullMsg:'请填写确认密码!',errorMsg:'两次密码输入不一致!',compare:'password'" maxlength="16">
                <span class="help-block"></span>
            </div>
        </div>

        <div class="form-group">
            <div class="controls">
                @Html.AntiForgeryToken()
                <button type="button" class="btn  btn-primary btn-lg col-xs-12 col-md-12 ui-pagePost" data-custom-params="url:'@Url.ActionUrl("ModifyPassword")',callBack:'Success',successMsg:'',failCallBack:''">下一步</button>
            </div>
        </div>

    </form>
</div>
<script type="text/javascript">

   function Success(result)
   {
      location.href = "@Url.ActionUrl("SuccessQuick")?username=" +UrlEncode(result.Description);
   }
   $(function () { AutoDialog(); })
 </script>